//
//  JokeingModel.m
//  播求
//
//  Created by MS on 15-9-19.
//  Copyright (c) 2015年 gengsensen. All rights reserved.
//

#import "JokeingModel.h"

@implementation JokeingModel

- (instancetype)initWithDic:(NSDictionary *)dic{
    
    if (self=[super init]) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}
//有冲突图的键值对
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
    
    if ([key isEqualToString:@"id"]) {
        _Myid= value;
        //_Mytext = value;
    }
    else if([key isEqualToString:@"text"]){
        
        _Mytext = value;
        
    }
    
    
}

//如果没有键值对返回空值
-(id) valueForUndefinedKey:(NSString *)key
{
    return nil;
}

+(JokeingModel *)applicationWithDict:(NSDictionary *)dic
{
    JokeingModel* app =[[JokeingModel alloc]initWithDic:dic];
    return app;
}






@end
